package com.purchase.ml.service.shoppingcart;

import com.purchase.ml.bean.req.shoppingcart.ProductCartReq;
import com.purchase.ml.bean.res.shoppingcart.ShoppingCartRes;

import java.util.List;

/**
 * Created by kyyang on 2021/2/28 12:14
 */
public interface SysShoppingCartService {

    /**
     * @description: 添加商品到购物车
     * @author kyyang
     * @date 2021/2/28 12:17
     * @version 1.0
     */
     void addProduct2Cart(ProductCartReq productCartReq);


    /**
     * @description: 从购物车中删除商品
     * @author kyyang
     * @date 2021/2/28 13:13
     * @version 1.0
     */
    void delProduct2Cart(ProductCartReq productCartReq);


    /**
     * @description: 清空购物车
     * @author kyyang
     * @date 2021/2/28 13:15
     * @version 1.0
     */
    void clearCart();


    /**
     * @description: 修改购物车商品
     * @author kyyang
     * @date 2021/2/28 13:17
     * @version 1.0
     */
    void modifyProduct2Cart(ProductCartReq productCartReq);

    /**
     * @description: 查询购物车商品
     * @author kyyang
     * @date 2021/2/28 13:19
     * @version 1.0
     */
    List<ShoppingCartRes> queryProduct2Cart();

    /**
     * @description: 根据订单删除购物车相关商品
     * @author kyyang
     * @date 2021/2/28 13:22
     * @version 1.0
     */
    void delProduct2CartByOrder(List<ProductCartReq> list);




}
